﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminDiscountEdit.aspx.cs" Inherits="eStore.UI.AdminDiscountEditPage" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" EnableViewState="false" />
        <asp:Panel ID="pnl1" runat="server" CssClass="art-Post-inner panelwrapper admin discount-edit">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <div class="breadcrumbs">
                        <asp:HyperLink ID="lnkStoreMenu" runat="server" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkAdminDiscount" runat="server" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkCurrentPage" runat="server" CssClass="selectedcrumb" />
                    </div>
                    <fieldset>
                        <legend>
                            <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                        </legend>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblDiscountCode" runat="server" ForControl="txtDiscountCode" CssClass="settinglabel"
                                ConfigKey="DiscountCodeLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtDiscountCode" runat="server" CssClass="forminput widetextbox"
                                MaxLength="255" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblDescription" runat="server" ForControl="txtDescription" CssClass="settinglabel"
                                ConfigKey="DiscountDescriptionLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtDescription" runat="server" CssClass="forminput widetextbox"
                                MaxLength="255" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblValidityStartDate" runat="server" ForControl="dpBeginDate" CssClass="settinglabel"
                                ConfigKey="DiscountValidityStartDateLabel" ResourceFile="eStoreResources" />
                            <mp:DatePickerControl ID="dpBeginDate" runat="server" ShowTime="True" CssClass="forminput">
                            </mp:DatePickerControl>
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblValidityEndDate" runat="server" ForControl="dpEndDate" CssClass="settinglabel"
                                ConfigKey="DiscountValidityEndDateLabel" ResourceFile="eStoreResources" />
                            <mp:DatePickerControl ID="dpEndDate" runat="server" ShowTime="True" CssClass="forminput">
                            </mp:DatePickerControl>
                            <asp:Label ID="lblLeaveBlankForNoEndDate" runat="server" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="SiteLabel2" runat="server" ForControl="ckAllowOtherDiscounts" CssClass="settinglabel"
                                ConfigKey="AllowOtherDiscountsLabel" ResourceFile="eStoreResources" />
                            <asp:CheckBox ID="ckAllowOtherDiscounts" runat="server" CssClass="forminput" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblMaxCount" runat="server" ForControl="txtMaxCount" CssClass="settinglabel"
                                ConfigKey="DiscountMaxCountLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtMaxCount" runat="server" CssClass="forminput normaltextbox" MaxLength="50"
                                Text="0" />
                            <asp:Label ID="lblZeroIsUnlimitedUse" runat="server" />
                        </div>
                        <asp:Panel ID="pnlUseCount" runat="server" class="settingrow">
                            <mp:SiteLabel ID="lblUseCountLabel" runat="server" CssClass="settinglabel" ConfigKey="DiscountUseCountLabel"
                                ResourceFile="eStoreResources" />
                                <asp:Label ID="lblUseCount" runat="server" ></asp:Label>
                        </asp:Panel>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblMinOrderAmount" runat="server" ForControl="txtMinOrderAmount"
                                CssClass="settinglabel" ConfigKey="DiscountMinOrderAmountLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtMinOrderAmount" runat="server" CssClass="forminput normaltextbox"
                                MaxLength="50" Text="0" />
                            <asp:Label ID="lblZeroMeansNoMinimum" runat="server" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblAbsoluteDiscount" runat="server" ForControl="txtAbsoluteDiscount"
                                CssClass="settinglabel" ConfigKey="DiscountAbsoluteDiscountLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtAbsoluteDiscount" runat="server" CssClass="forminput normaltextbox"
                                MaxLength="50" Text="0" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblPercentageDiscount" runat="server" ForControl="txtPercentageDiscount"
                                CssClass="settinglabel" ConfigKey="DiscountPercentageDiscountLabel" ResourceFile="eStoreResources" />
                            <asp:TextBox ID="txtPercentageDiscount" runat="server" CssClass="forminput normaltextbox"
                                MaxLength="50" Text="0" />
                        </div>
                        <div>
                            <asp:ValidationSummary ID="vSummary" runat="server" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqDiscountCode" runat="server" ControlToValidate="txtDiscountCode"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqDescription" runat="server" ControlToValidate="txtDescription"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqBeginDate" runat="server" ControlToValidate="dpBeginDate"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqMaxUseCount" runat="server" ControlToValidate="txtMaxCount"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqMinOrderAmount" runat="server" ControlToValidate="txtMinOrderAmount"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqDiscountAmount" runat="server" ControlToValidate="txtAbsoluteDiscount"
                                Display="None" ValidationGroup="Discount" />
                            <asp:RequiredFieldValidator ID="reqPercentDiscount" runat="server" ControlToValidate="txtPercentageDiscount"
                                Display="None" ValidationGroup="Discount" />
                            <asp:Label ID="lblError" runat="server" CssClass="txterror" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="SiteLabel1" runat="server" CssClass="settinglabel" ConfigKey="spacer" />
                            <portal:mojoButton ID="btnSave" runat="server" ValidationGroup="Discount" />
                            <portal:mojoButton ID="btnDelete" runat="server" CausesValidation="false" />
                        </div>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" EnableViewState="false" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
